<div>

    <div class="ibox ">
        <div class="ibox-title">
            <h5>查询条件</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-link btn-sm" style="margin-right:10px;"
                    v-on:click="_moreCondition()">
                    {{allocationOrderManageInfo.moreCondition == true?'隐藏':'更多'}}
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <div class="row">
                <div class="col-sm-2">
                    <div class="form-group">
                        <input type="text" placeholder="请输入调拨单号" v-model="allocationOrderManageInfo.conditions.orderId"
                            class=" form-control">
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="allocationOrderManageInfo.conditions.srcShId">
                            <option selected disabled value="">请选择源仓库</option>
                            <option v-for="(item,index) in allocationOrderManageInfo.shopHouses" :value="item.shId">
                                {{item.shName}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <div class="form-group">
                        <select class="custom-select" v-model="allocationOrderManageInfo.conditions.targetShId">
                            <option selected disabled value="">请选择目标仓库</option>
                            <option v-for="(item,index) in allocationOrderManageInfo.shopHouses" :value="item.shId">
                                {{item.shName}}
                            </option>
                        </select>
                    </div>
                </div>
                <div class="col-sm-2">
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryAssetInventoryMethod()">
                        <i class="fa fa-search"></i> 查询
                    </button>
                    <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetAssetInventoryMethod()">
                        <i class="fa fa-repeat"></i> 重置
                    </button>
                </div>
            </div>
            <div class="row" v-if="allocationOrderManageInfo.moreCondition == true">
                <div class="col-sm-3">
                    <select class="custom-select" v-model="allocationOrderManageInfo.conditions.state">
                        <option selected disabled value="">请选择状态</option>
                        <option value="1001">待审核</option>
                        <option value="2002">待入库</option>
                        <option value="3003">审核失败</option>
                        <option value="4004">完成</option>
                    </select>
                </div>
            </div>
        </div>
    </div>


    <div class="ibox">
        <div class="ibox-title">
            <h5>资产调拨</h5>
            <div class="ibox-tools" style="top:10px;">
                <button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddAssetInventoryModal()">
                    <i class="fa fa-plus"></i> 调拨
                </button>
            </div>
        </div>
        <div class="ibox-content">
            <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                <thead>
                    <tr>
                        <th class="text-center">调拨单号</th>
                        <th class="text-center">商品名称</th>
                        <th class="text-center">商品规格</th>
                        <th class="text-center">源店铺</th>
                        <th class="text-center">源仓库</th>
                        <th class="text-center">目标店铺</th>
                        <th class="text-center">目标仓库</th>
                        <th class="text-center">商品数量</th>
                        <th class="text-center">调拨人</th>
                        <th class="text-center">状态</th>
                        <th class="text-center">调拨时间</th>
                        <th class="text-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="allocationOrder in allocationOrderManageInfo.allocationOrders">
                        <td class="text-center">{{allocationOrder.orderId}}</td>
                        <td class="text-center">{{allocationOrder.prodName}}</td>
                        <td class="text-center">{{allocationOrder.specName}}</td>
                        <td class="text-center">{{allocationOrder.shopName}}</td>
                        <td class="text-center">{{allocationOrder.srcShName}}</td>
                        <td class="text-center">{{allocationOrder.targetShopName}}</td>
                        <td class="text-center">{{allocationOrder.targetShName}}</td>
                        <td class="text-center">{{allocationOrder.productCount}}</td>
                        <td class="text-center">{{allocationOrder.staffName}}</td>
                        <td class="text-center">{{allocationOrder.stateName}}</td>
                        <td class="text-center">{{allocationOrder.createTime}}</td>
                        <td class="text-center">
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-if="allocationOrder.state == '1001'"
                                    v-on:click="_openInStockAssetInventoryModel(allocationOrder)">审核
                                </button>
                            </div>
                            <div class="btn-group" v-if="allocationOrder.state == '1001'">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openEditAssetInventoryModel(allocationOrder)">修改
                                </button>
                            </div>
                            <div class="btn-group" v-if="allocationOrder.state == '1001'">
                                <button class="btn-white btn btn-xs"
                                    v-on:click="_openDeleteAssetInventoryModel(allocationOrder)">删除
                                </button>
                            </div>
                            <div class="btn-group">
                                <button class="btn-white btn btn-xs" v-if="allocationOrder.state == '2002'"
                                    v-on:click="_doAllocationOrderInModel(allocationOrder)">入库
                                </button>
                            </div>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <vc:create path="frame/pagination"></vc:create>
        </div>
    </div>

    <vc:create path="goods/deleteAssetInventory"></vc:create>
    <vc:create path="goods/allocationOrderEdit"></vc:create>
    <vc:create path="goods/deleteAllocationOrder"></vc:create>
    <vc:create path="common/allocationOrderAudit" callBackListener="allocationOrderManage"
        callBackFunction="notifyAuditInfo"></vc:create>
</div>